/**
 * @file        Infrasound.DP.h
 *
 * @ingroup	sensor
 * @brief	Event Detection and Data Acquisition
 * 
 * @author	Andreas Schlueter <mersaultpatrice@gmail.com>
 * @date	Mar 2008
 * @version	0.1
 */

#ifndef ACQUISITION_H
#define ACQUISITION_H

#include <ScatterWeb.System.h>
#include <Network.h>
#include <Infrasound.Energy.h>

/**
 * @brief callback function to activate acquisition component
 */
void acquisition_normalPowerMode();
/**
 * @brief callback function to deactivate or tune down acquisition component
 */
void acquisition_lowPowerMode();

#define INFRA_WARM_UP       10000    ///<warmup time after cold start
#define INFRA_SAMPLE_PERIOD 4      ///<sample rate about 20Hz
#define INFRA_TIMEOUT       5000     ///<timeout for event detection

/**
 * @brief initializes acquisition component
 *
 * @return 0 if succeeded
 */
uint8_t acquisition_init();
void acquisition_start();

/**
 * @brief	message handler callback (application layer)
 * @para msg message to be handled
 * @return false, if msg has to be handled by another msgHandler
 */
bool acquisition_msgHandler(enum dialog_message msg);



#endif  

